package com.woniu.microworkorderserver.feign;

import com.woniu.microcommonsserver.param.ResponseMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient(name = "micro-user-server",fallbackFactory = MicroUserServerFallbackFactory.class)
public interface UserServerFeign {

    @RequestMapping(value = "/user/searchfour",produces = MediaType.APPLICATION_JSON_VALUE)
    ResponseMsg findFour();

    @RequestMapping(value = "/user/searchbyids",produces = MediaType.APPLICATION_JSON_VALUE)
    ResponseMsg searchbyids(@RequestBody int[] ids);

    @RequestMapping(value = "/user/search",produces = MediaType.APPLICATION_JSON_VALUE)
    ResponseMsg search(@RequestBody Map<String,Object> map);
}
